<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>功能中心 - AI 智享生活管家</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <link href="../css/custom.css" rel="stylesheet">
</head>
<body class="bg-white">
    <!-- 状态栏 -->
    <div class="status-bar">
        <img src="../images/status-bar.png" alt="状态栏" class="w-full h-full object-cover">
    </div>

    <!-- 内容区域 -->
    <div class="content-area">
        <!-- 基础功能区 -->
        <section class="px-4 pt-4">
            <h2 class="text-lg font-semibold mb-4">基础功能</h2>
            <div class="grid grid-cols-3 gap-4">
                <!-- 天气查看 -->
                <a href="weather.html" class="bg-blue-50 rounded-xl p-4 flex flex-col items-center">
                    <i class="fas fa-cloud-sun text-2xl text-blue-500 mb-2"></i>
                    <span class="text-sm">天气查看</span>
                </a>
                <!-- 备忘录 -->
                <a href="notes.html" class="bg-yellow-50 rounded-xl p-4 flex flex-col items-center">
                    <i class="fas fa-sticky-note text-2xl text-yellow-500 mb-2"></i>
                    <span class="text-sm">备忘录</span>
                </a>
                <!-- 资讯中心 -->
                <a href="news-detail.html" class="bg-green-50 rounded-xl p-4 flex flex-col items-center">
                    <i class="fas fa-newspaper text-2xl text-green-500 mb-2"></i>
                    <span class="text-sm">资讯中心</span>
                </a>
            </div>
        </section>

        <!-- 付费功能预览区 -->
        <section class="px-4 pt-6">
            <div class="flex justify-between items-center mb-4">
                <h2 class="text-lg font-semibold">高级功能</h2>
                <a href="vip.html" class="text-sm text-blue-500 flex items-center">
                    <i class="fas fa-crown text-yellow-500 mr-1"></i>
                    开通会员
                </a>
            </div>
            <div class="space-y-4">
                <!-- 读书笔记 -->
                <a href="#" onclick="handleReadingNotes(event)" class="bg-white rounded-lg p-4 shadow-sm flex items-center">
                    <div class="w-10 h-10 bg-orange-100 rounded-full flex items-center justify-center mr-4">
                        <i class="fas fa-book text-orange-500"></i>
                    </div>
                    <div class="flex-1">
                        <h3 class="font-medium">读书笔记</h3>
                        <p class="text-gray-500 text-sm mt-1">智能化的读书笔记管理系统</p>
                    </div>
                    <div class="flex items-center text-yellow-500">
                        <i class="fas fa-crown mr-1"></i>
                        <span class="text-sm">会员专享</span>
                    </div>
                </a>
                <!-- 健康管理 -->
                <div class="bg-white rounded-lg p-4 shadow-sm flex items-center">
                    <div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center mr-4">
                        <i class="fas fa-heartbeat text-green-500"></i>
                    </div>
                    <div class="flex-1">
                        <h3 class="font-medium">健康管理</h3>
                        <p class="text-gray-500 text-sm mt-1">专业的健康数据追踪与分析</p>
                    </div>
                    <i class="fas fa-lock text-gray-400"></i>
                </div>
                <!-- 时间管理 -->
                <div class="bg-white rounded-lg p-4 shadow-sm flex items-center">
                    <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-4">
                        <i class="fas fa-clock text-blue-500"></i>
                    </div>
                    <div class="flex-1">
                        <h3 class="font-medium">时间管理</h3>
                        <p class="text-gray-500 text-sm mt-1">高效的时间规划与追踪工具</p>
                    </div>
                    <i class="fas fa-lock text-gray-400"></i>
                </div>
            </div>
        </section>
    </div>

    <!-- 底部导航栏 -->
    <nav class="tab-bar">
        <div class="grid grid-cols-3 h-full">
            <a href="home.html" class="flex flex-col items-center justify-center text-gray-400">
                <i class="fas fa-home text-xl"></i>
                <span class="text-xs mt-1">首页</span>
            </a>
            <a href="features.html" class="flex flex-col items-center justify-center text-blue-500">
                <i class="fas fa-th-large text-xl"></i>
                <span class="text-xs mt-1">功能</span>
            </a>
            <a href="profile.html" class="flex flex-col items-center justify-center text-gray-400">
                <i class="fas fa-user text-xl"></i>
                <span class="text-xs mt-1">我的</span>
            </a>
        </div>
    </nav>

    <!-- 添加读书笔记跳转逻辑 -->
    <script>
        function handleReadingNotes(e) {
            e.preventDefault();
            // 检查会员状态
            const isMember = localStorage.getItem('isMember') === 'true';
            if (isMember) {
                // 会员用户跳转到笔记管理页面
                window.location.href = 'reading-notes.html';
            } else {
                // 非会员用户跳转到预览页面
                window.location.href = 'reading-notes-preview.html';
            }
        }
    </script>
</body>
</html> 
